<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>Document</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id="app">
        <cpn>
            <span slot="left"><</span>
            <input slot="center" type="text">
            <button slot="right">按钮</button>

            <select name="" id="">
                <option value="">湘潭</option>
            </select>
        </cpn>
        <cpn>
            <button slot="left"><</button>
            <input slot="center" type="text">
            <button slot="right">按钮</button>
        </cpn>
    </div>
    <template id="cpn">
        <div>
            <slot name="left">左边</slot>
            <slot name="center">中间</slot>
            <slot name="right">右边</slot>
            <slot>
                <input type="radio">
            </slot>
        </div>
    </template>
    <script>
        new Vue({
            el:'#app',
            data:{
                item:"app的item"
            },
            methods:{
            },
            components:{
                cpn:{
                    template:"#cpn",
                    data(){
                        return {
                            categories:["家用电器", "男装女装", "未成年人用品", "维多利亚的秘密"]
                        }
                    }
                }
            }
        })
    </script>
</body>
</html>